package heliotrope.utils.mission
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import flash.events.IEventDispatcher;

	public class ListenedMission extends Mission
	{
		protected var _completeEvent:String;
		protected var _progressEvent:String;
		protected var _listener:IEventDispatcher;
		public function ListenedMission(closure_:Function, params_:Object, listener_:IEventDispatcher, 
			progressEvent_:String, completeEvent_:String, missionName_:String = "", weight_:uint=1)
		{
			super(closure_, params, missionName_);
			_listener	= listener_;
			_completeEvent	= completeEvent_;
			_progressEvent	= progressEvent_;
		}
		
		public function get listener():IEventDispatcher
		{
			return _listener;
		}

		public function get completeEvent():String
		{
			return _completeEvent;
		}
		
		public function get progressEvent():String
		{
			return _progressEvent;
		}
		
		override public function toString():String
		{
			return "missionid:"+_id+"; \t|name:"+_name+"; \t|listener:"+_listener+"; \t|event:"+_completeEvent;
		}


	}
}